﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using enqueteJwVd.DAL;

namespace enqueteJwVd.Services
{
    public class SurveyService : ISurveyService
    {
        private UnitOfWork unitOfWork;

        public SurveyService()
        {
            unitOfWork = new UnitOfWork();
        }

        #region ISurveyService Members
        public List<Survey> GetAllSurveys()
        {
            return unitOfWork.SurveyRepository.GetAll().ToList<Survey>();
        }
        #endregion

    }
}